package com.exam.view;

import com.exam.utils.JdbcControl;
import java.sql.SQLException;

public class ShowChoiceOrWrite {
    public static void choice() throws SQLException {
        System.out.println("题目:" + JdbcControl.getRs().getString("questionContent"));
        System.out.print("A." + JdbcControl.getRs().getString("A") + "  ");
        System.out.print("B." + JdbcControl.getRs().getString("B") + "  ");
        System.out.print("C." + JdbcControl.getRs().getString("C") + "  ");
        System.out.println("D." + JdbcControl.getRs().getString("D"));
        System.out.println("正确答案:" + JdbcControl.getRs().getString("rightAnswer"));
    }
    public static void write() throws SQLException {
        System.out.println("题目:"+ JdbcControl.getRs().getString("questionContent"));
        System.out.println("正确答案:"+ JdbcControl.getRs().getString("rightAnswer"));
    }
}
